package com.r2coding.system.dao;

import com.r2coding.system.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.r2coding.system.vo.req.UserLockVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-04-04 10:30:49
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    List<Integer> getUserRoleIdsByUserId(@Param("userId") Integer userId);

    void lock(UserLockVo vo);

    void deleteUserRole(@Param("userId") Integer userId);
}
